﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heroius.Indexer
{
    public partial class TxTitle : Form
    {
        public TxTitle(string Original)
        {
            InitializeComponent();
            original = Original;
            TbTitle.Text = original;
            Changed = false;
            ChangedTitle = "";
        }

        string original;

        public string ChangedTitle { get; set; }

        public bool Changed { get; set; }

        private void BtnOK_Click(object sender, EventArgs e)
        {
            ChangedTitle = TbTitle.Text;
            Changed = (ChangedTitle != original);
            this.Close();
        }

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
